home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 37 / CD Expert nº 37.iso / LastCall / lastcall.exe / stuff / lastcall.dxr / 00050_ID card's expiration 2.ls < prev    next >
Encoding:
Text File  |  2000-03-27  |  497 b   |  22 lines

  1. property pSpr
  2.  
  3. on beginSprite me
  4.   pSpr = sprite(me.spriteNum)
  5.   dateLocs = [#JF: point(431, 338), #LC: point(432, 324)]
  6.   pCharCode = currentChar()
  7.   thisChar = string(pCharCode)
  8.   dateLoc = getaProp(dateLocs, pCharCode)
  9.   if voidp(dateLoc) then
  10.     pSpr.visible = 0
  11.     exit
  12.   end if
  13.   pSpr.visible = 1
  14.   pSpr.member.text = formatExpirationDate(sprite(getActiveCharacter()).pExpirationDate2)
  15.   pSpr.member.color = pink()
  16.   pSpr.loc = dateLocs[pCharCode]
  17. end
  18.  
  19. on endSprite
  20.   pSpr.visible = 1
  21. end
  22.